package com.his.bean;

import java.io.Serializable;

/**
 * 排班时段表
 * @TableName dzm_his_scheduling_subsection
 */
public class DzmHisSchedulingSubsection implements Serializable {
    /**
     * 
     */
    private Integer schedulingSubsectionId;

    /**
     * 每天的时段：上午：1；下午：2；晚上：3；
     */
    private Integer subsectionType;

    /**
     * 排班id
     */
    private Integer schedulingId;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getSchedulingSubsectionId() {
        return schedulingSubsectionId;
    }

    /**
     * 
     */
    public void setSchedulingSubsectionId(Integer schedulingSubsectionId) {
        this.schedulingSubsectionId = schedulingSubsectionId;
    }

    /**
     * 每天的时段：上午：1；下午：2；晚上：3；
     */
    public Integer getSubsectionType() {
        return subsectionType;
    }

    /**
     * 每天的时段：上午：1；下午：2；晚上：3；
     */
    public void setSubsectionType(Integer subsectionType) {
        this.subsectionType = subsectionType;
    }

    /**
     * 排班id
     */
    public Integer getSchedulingId() {
        return schedulingId;
    }

    /**
     * 排班id
     */
    public void setSchedulingId(Integer schedulingId) {
        this.schedulingId = schedulingId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisSchedulingSubsection other = (DzmHisSchedulingSubsection) that;
        return (this.getSchedulingSubsectionId() == null ? other.getSchedulingSubsectionId() == null : this.getSchedulingSubsectionId().equals(other.getSchedulingSubsectionId()))
            && (this.getSubsectionType() == null ? other.getSubsectionType() == null : this.getSubsectionType().equals(other.getSubsectionType()))
            && (this.getSchedulingId() == null ? other.getSchedulingId() == null : this.getSchedulingId().equals(other.getSchedulingId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSchedulingSubsectionId() == null) ? 0 : getSchedulingSubsectionId().hashCode());
        result = prime * result + ((getSubsectionType() == null) ? 0 : getSubsectionType().hashCode());
        result = prime * result + ((getSchedulingId() == null) ? 0 : getSchedulingId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", schedulingSubsectionId=").append(schedulingSubsectionId);
        sb.append(", subsectionType=").append(subsectionType);
        sb.append(", schedulingId=").append(schedulingId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}